import { S } from '../../../s';
import { IPSDEFVRValueRange3Condition } from './ipsdefvrvalue-range3-condition';
import { PSDEFVRSingleConditionImpl } from './psdefvrsingle-condition-impl';

export class PSDEFVRValueRange3ConditionImpl
  extends PSDEFVRSingleConditionImpl
  implements IPSDEFVRValueRange3Condition
{
  get separator(): string {
    return this.M.separator;
  }
  protected valueranges: string[];
  getValueRanges(): string[] | null {
    if (this.valueranges == null) {
      const value = this.M.valueRanges;
      if (value == null) {
        return null;
      }
      const arrayNode: any[] = value;
      if (arrayNode.length == 0) {
        return null;
      }
      const list: string[] = [];
      for (let i = 0; i < arrayNode.length; i++) {
        list.push(arrayNode[i]);
      }
      this.valueranges = list;
    }
    return this.valueranges;
  }
  get cls(): string {
    return 'PSDEFVRValueRange3ConditionImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._1ce) return true;
    return super.instanceof(cls);
  }
}
